﻿/* 2014/8/3 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace PictureManager.Option
{
    [XmlRoot(ElementName = "ExtractionRule")]
    [XmlType(TypeName = "ExtractionRule")]
    public class DynamicColumnExtractionRule
    {
        public const string SpliterExtractorName = "Spliter";
        public const string RegexExtractorName = "Regex";

        [XmlElement(ElementName = "Extractor")]
        public string Extractor
        {
            get;
            set;
        }

        public string Pattern
        {
            get;
            set;
        }

        [XmlArray(ElementName = "ColumnDefinitions")]
        public DynamicColumnDefinitionInfo[] ColumnDefinitions
        {
            get;
            set;
        }
    }
}
